﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Geometry;



namespace GeometryTest
{
    class Program
    {
        static void Main(string[] args)
        {
            var p1 = new Point();
            var p2 = new Point();

            var p = p1;

            Console.WriteLine("ReferenceEquals");
            Console.WriteLine(object.ReferenceEquals(p1, p2));
            Console.WriteLine(object.ReferenceEquals(p1, p));
            
            Console.WriteLine("Equals");
            Console.WriteLine(p1.Equals(p2));
            Console.WriteLine(p1.Equals(p));

            Console.WriteLine("==");
            Console.WriteLine(p1 == p2);
            Console.WriteLine(p1 == p);

            Console.WriteLine("----------------");

            var ss = "o";
            var s1 = "Hello";
            var s2 = "Hell" + ss;
            var s = s1;

            Console.WriteLine("ReferenceEquals");
            Console.WriteLine(object.ReferenceEquals(s1, s2));
            Console.WriteLine(object.ReferenceEquals(s1, s));

            Console.WriteLine("Equals");
            Console.WriteLine(s1.Equals(s2));
            Console.WriteLine(s1.Equals(s));

            Console.WriteLine("==");
            Console.WriteLine(s1 == s2);
            Console.WriteLine(s1 == s);

            Console.ReadKey();
        }
    }
}
